package com.cskaoyan.service;


import com.cskaoyan.bean.po.BaseParam;
import com.cskaoyan.bean.po.MarketCoupon;
import com.cskaoyan.bean.po.MarketCouponUser;

import java.util.List;

/**
 * @ClassName:CouponService
 * @Auther: HeXianZu
 * @Description:
 * @Date: 2022/10/11 20:20
 */

public interface CouponService {
    // 显示优惠券列表
    List<MarketCoupon> list(BaseParam baseParam, MarketCoupon marketCoupon);

    // 新增优惠券
    MarketCoupon create(MarketCoupon marketCoupon);

    List<MarketCouponUser> listUser(BaseParam baseParam,Integer couponId,Integer userId,Short status);

    MarketCoupon update(MarketCoupon marketCoupon);

    int delete(MarketCoupon marketCoupon);

    MarketCoupon read(Integer id);
}
